#include "abstractstate.h"
#include "unistd.h"
#include <iostream>

int main()
{
    HostPool pool;
    auto h = pool.instance("1");

    // 垃圾回收验证
    while(1)
    {
        pool.check_timeout();
        pool.clean();
        std::cout << pool.size() << std::endl;

        usleep(1000 * 1000);
    };



    return 0;
}
